package com.qf.qftenantmanager.web.controller;

import com.qf.common.bean.R;
import com.qf.qftenantmanager.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/tenant/product")
public class ProductController {

    @Autowired
    private ProductService productService;

    @GetMapping("/list")
    public R list(@RequestParam("tenantId") Long tenantId){
        return productService.list(tenantId);
    }
}
